import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class SwiperCenterItem extends StatefulWidget {
  @override
  _SwiperCenterItemState createState() => _SwiperCenterItemState();
}

class _SwiperCenterItemState extends State<SwiperCenterItem> {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: [
          Container(
            height: 80.w,
            decoration: BoxDecoration(
              color: Colors.white,
            ),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Row(
                  children: [
                    Container(
                      width: 5.w,
                      height: 40.w,
                      color: Colors.orange,
                    ),
                    SizedBox(
                      width: 20.w,
                    ),
                    Text('满足积分2000分', style: TextStyle(color: Colors.black,fontWeight: FontWeight.bold))
                  ],
                ),
                Text('未满足条件', style: TextStyle(color: Colors.grey))
              ],
            ),
          ),
          Container(
            height: 120.w,
            decoration: BoxDecoration(
              color: Colors.white,
            ),
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Text('还需2000经验', style: TextStyle(color: Colors.black),textAlign: TextAlign.center,),
                RichText(
                  text: TextSpan(children: [
                    TextSpan(text: '0', style: TextStyle(color: Colors.orange)),
                    TextSpan(text: '/2000', style: TextStyle(color: Colors.grey))
                  ]),
                )
              ],
            ),
          )
        ],
      ),
    );
  }
}
